import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 引入全局css样式
import './assets/css/global.css'


// 将路环境变量中的路径存到localstorage中
localStorage.setItem("VUE_APP_BASE_URL", process.env.VUE_APP_BASE_URL)
localStorage.setItem("VUE_APP_WEBSOCKET_URL", process.env.VUE_APP_WEBSOCKET_URL)


createApp(App)
    // 挂载element-plus
    .use(ElementPlus)
    .use(store).use(router).mount('#app')